<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0,user-scalable=no">
<meta name="apple-touch-fullscreen" content="YES">
<meta name="format-detection" content="telephone=no">
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<link rel="stylesheet" href="/Public/projects/meeting/css/iconfont.css">
<link rel="stylesheet" href="/Public/projects/meeting/css/meetbase.css">

<title>{$meet['name']}</title>
</head>
<body>
<div class="cover" style="<?php
        echo 'display:block;';
        if(!empty($meet['backurl'])){
            echo "background-image:url('" .$meet['backurl'] . "');background-repeat:no-repeat;background-size:100% 100%;";
        }else{
            if($meet['theme_color'] == "#FF824D"){
                echo "background-image:url('/Public/projects/meeting/images/bgorange.jpg');background-repeat:no-repeat;background-size:100% 100%;";
            }else if($meet['theme_color'] == "#FF5854"){
                echo "background-image:url('/Public/projects/meeting/images/bgred.jpg');background-repeat:no-repeat;background-size:100% 100%;";
            }else if($meet['theme_color'] == "#2EBE9B"){
                echo "background-image:url('/Public/projects/meeting/images/bggreen.jpg');background-repeat:no-repeat;background-size:100% 100%;";
            }else{
                echo "background-image:url('/Public/projects/meeting/images/bg.jpg');background-repeat:no-repeat;background-size:100% 100%;";
            }
        }
    ?>" >
	<div class="coverBanner" <?php if(!empty($meet['logourl'])){
	    echo 'style="background:url(' . $meet['logourl'] . ') no-repeat;background-size:318px 117px;"';
	}?>></div>
    <!--<div class="yqtitle"></div>-->
<?php
    if($meet['need_ticket'] && $is_wx && ($ticket_count > 0)){
        echo '<div class="wrapBtn"><a href="/Wap/Meeting/index?meetId=' . $meet['meet_id'] . '">';
        echo '<div class="coverBtn colourwaybg">';
        if(($meet['theme_color'] == '#FF5854') || ($meet['theme_color'] == '#FF824D')){
            echo '<div style="background-color: #FFFFFF;border-radius:100px;">进入</div>';
        }else{
            echo '进入';
        }
        echo '</div></a>
        <a href="/Wap/Meeting/index?meetId=' . $meet['meet_id'] . '&is_getticket=1"><div class="indexTicket colourwaybg">电子票<i class="icon iconfont icon-dianzifapiao ticketFix"></i></div></a>
        </div>';
    }else{
?>

<div class="wrapBtn"><a href="/Wap/Meeting/index?meetId={$meet['meet_id']}"><div class="coverBtn colourwaybg coverWith">
    <?php
        if(($meet['theme_color'] == '#FF5854') || ($meet['theme_color'] == '#FF824D')){
            echo '<div style="background-color: #FFFFFF;border-radius:100px;">进入</div>';
        }else{
            echo '进入';
        }
        ?>
</div></a></div>
<?php }?>
</div>
</body>
<script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
<script>
    var share_disable = "{$share_disable}";
    var color = "{$meet['theme_color']}";
    wx.config({
        debug: false, // 开启调试模式,调用的所有api的返回值会在客户端alert出来，若要查看传入的参数，可以在pc端打开，参数信息会通过log打出，仅在pc端时才会打印。
        appId: '{$appid}', // 必填，公众号的唯一标识
        timestamp: "{$timestamp}", // 必填，生成签名的时间戳
        nonceStr: '{$nonceStr}', // 必填，生成签名的随机串
        signature: '{$wxSha1}',// 必填，签名，见附录1
        jsApiList: ['onMenuShareAppMessage','onMenuShareTimeline', 'scanQRCode', 'chooseImage', 'getLocalImgData'] // 必填，需要使用的JS接口列表，所有JS接口列表见附录2
    });
    wx.error(function(res){
        console.log(res);
    });
    wx.ready( function( e ){
        if(share_disable == 1){
            wx.hideAllNonBaseMenuItem();
        }
        wx.onMenuShareAppMessage({
            title: "{$share_title}",
            desc: "{$share_desc}",
            link: "{$share_url}",
            imgUrl: "{$share_pic}",
            type: 'link',
            dataUrl: '',
            success: function () {
            }
        });
        wx.onMenuShareTimeline({
            title: "{$share_title}",
            link: "{$share_url}",
            imgUrl: "{$share_pic}",
            success: function () {
            }
        });
    });
</script>
<script src="/Public/projects/meeting/js/jquery-1.7.1.min.js"></script>
<script src="/Public/projects/meeting/js/common.js"></script>
<script src="/Public/js/common/baidutongji.js"></script>
</html>
